<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>爱心代码</title>
    <meta name="keywords" content="爱心代码">
    <meta name="description" content="爱心代码~">
    <link rel="stylesheet" href="./js/style.css">
</head>

<body>
    <div class="van-cell van-field love_you">
        <div class="van-cell__title van-field__label">
            <label id="van-field-1-label" for="van-field-1-input">你要输入的内容</label>
        </div>
        <div class="van-cell__value van-field__value">
            <div class="van-field__body">
                <input class="inputClass" id="input" type="text" placeholder="输入你要显示的内容">

            </div>
        </div>
        <div class="van-cell__title van-field__label" style="margin-top: 10px;text-align: center;" >
            <label id="confirm" style="cursor: pointer;border: 1px solid pink;border-radius: 5px;padding: 5px 20px;" for="van-field-1-input">生成</label>
        </div>
    </div>
    <!-- 这里替换音乐 -->
    <audio src="./js/lovexf.mp3" autoplay="autoplay" loop="loop" controls="controls"></audio>
    <canvas id="lovexf"></canvas>
    <script src="./js/script.js"></script>
    <script src="./js/love.click.js"></script>
</body>
<script>


let confirm = document.getElementById("confirm")

confirm.onclick = function () {
    let input = document.getElementById("input")
    var inputValue = input.value;
    if (inputValue==null||inputValue==""||inputValue==undefined) {
        window.location.href = './js/var.html?name=' + 'WMQ';
    }else {
        window.location.href = './js/var.html?name=' + inputValue;

    }
}

</script>
<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?c86d6693de25dbc83f5b35458e469aa0";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>

</html>
